package com.deram.ctin.common.vo;

import java.util.Objects;

/**
 * @author zhangcm
 * @version 1.0, 2017/9/28
 */
public class GexfEdgeVo {

    private String id;
    private String label;
    private String source;
    private String target;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GexfEdgeVo that = (GexfEdgeVo) o;
        return Objects.equals(label, that.label) &&
                Objects.equals(source, that.source) &&
                Objects.equals(target, that.target);
    }

    @Override
    public int hashCode() {
        return Objects.hash(label, source, target);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }
}
